import app


class ApproveApi():
    def __init__(self):
        self.approve_url=app.BASC_URL+"/member/realname/approverealname"
        self.get_approve_url=app.BASC_URL+"/member/member/getapprove"
    def approve_api(self,session,realname,card_id):
        """multpart多消息体数据,定义发送两个消息体"""
        form_data={"realname":realname, "card_id":card_id}
        resp=session.post(self.approve_url,data=form_data,files={"x":"y"})
        return resp
    def get_approve_msg(self,session):
        resp=session.post(self.get_approve_url)
        return resp


